#ifndef KERNEL_TYPE_H
#define KERNEL_TYPE_H

#define EOF -1 // end of file
#define NULL ((void *)0) // 空指针, 这样写不会编译告警
#define EOS '\0' // 字符串结尾
#define bool _Bool
#define true 1
#define false 0

#define _packed __attribute__((packed)) // 用于记录特殊的结构体

typedef unsigned int size_t;

typedef char int8;
typedef short int16;
typedef int int32;
typedef long long int64;

typedef unsigned char u8;
typedef unsigned short u16;
typedef unsigned int u32;
typedef unsigned long long u64;

#endif
